<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="style/carousel.css">
    <script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
    <script src="style/carousel.js"></script>
    <title>Document</title>
</head>
<body>
<div class="J_Poster poster-main"
     data-setting='{
                 "width":1000,
                "height":270,
                "posterWidth":640,
                "posterHeight":270,
                "scale":0.9,
                "speed":500,
                "verticalAlign":"middle"
                }'
">
<div class="poster-btn poster-prev-btn"></div>
<ul class="poster-list">
    <li class="poster-item"><a href="#"><img src="static/pic/1.jpg" width="100%" alt=""></a></li>
    <li class="poster-item"><a href="#"><img src="static/pic/2.jpg" width="100%" alt=""></a></li>
    <li class="poster-item"><a href="#"><img src="static/pic/3.jpg" width="100%" alt=""></a></li>
    <li class="poster-item"><a href="#"><img src="static/pic/4.jpg" width="100%" alt=""></a></li>
    <li class="poster-item"><a href="#"><img src="static/pic/6.jpg" width="100%" alt=""></a></li>
    <li class="poster-item"><a href="#"><img src="static/pic/2.jpg" width="100%" alt=""></a></li>
    <li class="poster-item"><a href="#"><img src="static/pic/3.jpg" width="100%" alt=""></a></li>
    <li class="poster-item"><a href="#"><img src="static/pic/4.jpg" width="100%" alt=""></a></li>
    <li class="poster-item"><a href="#"><img src="static/pic/6.jpg" width="100%" alt=""></a></li>
</ul>
<div class="poster-btn poster-next-btn"></div>

</div>
</body>
<script>
    $(function () {

//       var carousel = new Carousel($(".J-Poster").eq(0));

        Carousel.init($('.J_Poster'))

    })
</script>
</html>